<div class="actions">
    <h3><?php __('Actions'); ?></h3>
    <ul>
        <?php
        $controllerList = Configure::listObjects('controller');
        foreach ($controllerList as $controllerName) {
            if (in_array($controllerName, array('App', 'Pages')))
                continue;

            $singleName = Inflector::singularize($controllerName);
            $tableName = Inflector::tableize($singleName);
            $humanName = Inflector::humanize($tableName);
            if (
                    (in_array($controllerName, explode(",", $user['Group']['whitelisted_controllers'])))
                    OR
                    ($user['Group']['security_level'] == 9)
            )
                echo '<li>' . $this->Html->link(__($humanName, true), '/' . $controllerName, array('action' => 'index')) . '</li>';
        }

        echo '<li>' . $this->Html->link(__('Logout', true), array('controller' => 'users', 'action' => 'logout')) . '</li>';
        ?>
    </ul>
</div>